﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ContractManage.aspx.cs" Inherits="SDLITS.Web.Customer.ContractManage" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel6"/>
      <f:Panel ID="Panel6" Title="合同管理" ShowBorder="false" BodyPadding="0" ShowHeader="True" Layout="Fit" runat="server" AutoScroll="true">
        <Toolbars>
            <f:Toolbar runat="server">
                <Items>
                    <f:DropDownList EnableEdit="true" runat="server" ID="drp_com" AutoPostBack="true" OnSelectedIndexChanged="drp_com_SelectedIndexChanged"></f:DropDownList>
                    <f:ToolbarSeparator runat="server"></f:ToolbarSeparator>
                    <f:Button runat="server" Text="续签" ID="btn_xq" OnClick="btn_xq_Click"></f:Button>
                    <f:ToolbarSeparator runat="server"></f:ToolbarSeparator>
                    <f:Button runat="server" Text="终止" ID="btn_zz" OnClick="btn_zz_Click"></f:Button>
                </Items>
            </f:Toolbar>
        </Toolbars>
        <Items>
        <f:Grid ID="Grid1" ShowBorder="false" PageSize="12" AllowPaging="true" EnableCheckBoxSelect="true" IsDatabasePaging="true"
            OnPageIndexChange="Grid1_PageIndexChange" EnableColumnLines="true" OnRowDataBound="Grid1_RowDataBound"
             EnableHeaderMenu="false" ShowHeader="false" Title="表格" runat="server" EnableCollapse="false" DataKeyNames="ContractID">
            <Columns>
                <f:RowNumberField EnablePagingNumber="true" Width="60px" TextAlign="Center" />
                <f:BoundField Width="130px" DataField="CompanyName" HeaderText="公司名"/>
                <f:BoundField Width="130px" DataField="ContractNo" HeaderText="合同编号"/>
                <f:BoundField Width="100px" DataField="StatusID" HeaderText="状态" />
                <f:BoundField Width="100px" DataField="Contractor" HeaderText="联系人"/>
                <f:BoundField Width="130px" DataField="Phone" HeaderText="联系电话"/>
                <f:BoundField Width="150px" DataField="StartDate" HeaderText="开始日期" />
                <f:BoundField Width="150px" DataField="EndDate" HeaderText="结束日期"/>
                <f:WindowField ColumnID="myWindowField" Width="80px" WindowID="Window1" Text="查看" HeaderText="查看"
                    DataTextFormatString="{0}" DataIFrameUrlFields="ContractID" DataIFrameUrlFormatString="ContractView.aspx?id={0}"
                    DataWindowTitleField="CompanyName" DataWindowTitleFormatString="查看 - {0}合同" Icon="BulletEdit" TextAlign="Center"/>
            </Columns>
        </f:Grid>
        </Items>
       </f:Panel>
       <f:Window ID="Window1" Title="编辑" Hidden="true" EnableIFrame="true" runat="server"
         IFrameUrl ="about:blank" IsModal="True" Width="635px" Height="250px">
       </f:Window>
        <f:Window ID="Window2" Title="编辑" Target="Top" Hidden="true" EnableIFrame="true" runat="server"
         IFrameUrl ="about:blank" IsModal="True" Width="440px" Height="520px">
       </f:Window>
        <f:Window ID="Window3" Width="380px" Height="230px" Title="终止合同" Hidden="true"
            EnableMaximize="false" EnableCollapse="false" runat="server" EnableResize="true"
            IsModal="false" CloseAction="HidePostBack" OnClose="Window2_Close" Layout="Fit">
            <Toolbars>
               <f:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <f:Button ID="btnSaveRefresh" Text="保存" runat="server" ValidateForms="SimpleForm1" Icon="SystemSaveNew" OnClick="btnSaveRefresh_Click">
                    </f:Button>
                </Items>
            </f:Toolbar>
            </Toolbars>
            <Items>
                <f:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" LabelWidth="80px"
                        AutoScroll="true" BodyPadding="5px" runat="server" EnableCollapse="false">
                        <Items>
                            <f:HiddenField runat="server" ID="hidid"></f:HiddenField>
                            <f:Label runat="server" ID="lbl_name" Label="公司名称"></f:Label>
                            <f:Label runat="server" ID="lbl_no" Label="合同编号"></f:Label>
                            <f:Label runat="server" ID="lbl_start" Label="开始日期"></f:Label>
                            <f:DatePicker Required="true" ShowRedStar="true" runat="server" EnableEdit="false" ID="txt_enddate" DateFormatString="yyyy-MM-dd" Label="结束日期"></f:DatePicker>
                        </Items>
                    </f:SimpleForm>
            </Items>
        </f:Window>
    </form>
</body>
</html>
